package com.zxl.designpattern.structure.proxy;

/**
 * @author zxl
 * @version 1.0
 * @description 真实主题：买车的客户
 * @date 2025/6/1 14:12
 */
public class Customer implements CarPurchase{

    // 客户姓名
    private String name;

    public Customer(String name) {
        this.name = name;
    }

    @Override
    public void purchase(String carModel) {
        System.out.println(name + "买了车，型号是：" + carModel);
    }
}
